<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="Damon">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="css/fault.css">
</head>
<script type="text/javascript">
	function addfault(){
		mdiv = document.getElementById("profile");
		if (profile.fname.value == "") {
			alert("故障名不能为空！");
			profile.fname.focus();
			return ;
		}
		if (profile.describe.value == "") {
			alert("故障描述不能为空！");
			profile.describe.focus();
			return ;
		}
		if (profile.symptom.value == "") {
			alert("故障现象不能为空！");
			profile.symptom.focus();
			return ;
		}
		if (profile.results.value == "") {
			alert("处理措施不能为空！");
			profile.results.focus();
			return ;
		}
		if (profile.analyse.value == "") {
			alert("改进措施不能为空！");
			profile.analyse.focus();
			return ;
		}
		if (profile.measure.value == "") {
			alert("改进措施不能为空！");
			profile.measure.focus();
			return ;
		}

		if (confirm('确定')) {
			document.profile.action = "addFaultAction.action";
			document.profile.submit();
		}else{
			return false;
		}
	}
</script>
<body>
	<div class="setting-detail" id="stthld" style="display:block;">
		<div class="detail-bg"></div>
		<div class="plzhld clearfix">
			<div class="mod-setting-profile" id="100001" style="display:block;">
				<div class="setting-profile-title yahei">
					故障添加
					<div style="float:right;padding-right: 20px;">
						<input type="button" onclick="javasrcipt:history.go(-1)"
							value="返回" />
					</div>
					<div style="float:right;padding-right: 50px;">
						<input type="button" onclick="addfault()"
							value="添加" />
					</div>
				</div>
					<form id="profile" name="profile" class="setting-profile-form" method="post">
					<table style="width:1094px;">
						<!-- 大table包含左右两个table -->
						<tr>
							<td>
								<table style="wdith:546px;">
									<tr>
										<th>故障编号：</th>
										<td><input class="INPUTSTYLE1" type="text"
											value="故障编号由数据库给定,无需输入.."
											disabled="disabled" name="fid"/></td>
									</tr>
									<tr>
										<th>故障名：</th>
										<td><input class="INPUTSTYLE1" type="text"
											placeholder="输入故障名"
											name="fname" /></td>
									</tr>
									<tr>
										<th>所属子系统：</th>
										<td><select  name="subsystem"
											style="display:block;">
												<option value="无">无</option>
												<option value="交换子系统（SSS）">交换子系统（SSS）</option>
												<option value="基站子系统（BSS）">基站子系统（BSS）</option>
												<option value="智能网子系统（IN）">智能网子系统（IN）</option>
												<option value="操作和维护子系统（OSS）">操作和维护子系统（OSS）</option>
												<option value="通用分组无线业务GPRS">通用分组无线业务GPRS</option>
												<option value="固定用户接入交换（FAS）">固定用户接入交换（FAS）</option>
												<option value="终端子系统">终端子系统</option>
										</select></td>
									</tr>
									<tr>
										<th>所属业务：</th>
										<td><select name="serve"
											style="display:block;">
												<option value="核心网">核心网</option>
												<option value="无线侧">无线侧</option>
												<option value="网管">网管</option>
												<option value="终端">终端</option>
										</select>
										</td>
									</tr>
									<tr>
										<th>故障描述：</th>
										<td><textarea name="describe" placeholder="输入故障描述" class="fault-nomal1"></textarea>
										</td>
									</tr>
									<tr>
										<th>故障现象：</th>
										<td><textarea name="symptom" placeholder="输入150字以内的故障现象" class="fault-nomal1"></textarea>
										</td>
									</tr>
								</table>
							</td>
							<td>
								<table style="wdith:546px;">
									<tr>
										<th>处理措施：</th>
										<td><textarea name="results" placeholder="输入150字以内的处理故障措施" class="fault-nomal2"></textarea>
										</td>
									</tr>
									<tr>
										<th>故障分析：</th>
										<td><textarea name="analyse" placeholder="输入250字以内的故障分析过程" class="fault-nomal2"></textarea>
										</td>
									</tr>
									<tr>
										<th>改进措施：</th>
										<td><textarea name="measure" placeholder="输入250字以内的故障改进措施" class="fault-nomal2"></textarea>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</form>
			</div>
		</div>
		
	</div>
</body>
</html>
